import request from '@/utils/request'
//添加费用缴纳记录
export function addPayment(data) {
  return request({
    url: '/kjy/payment',
    method: 'post',
    data: data,
  });
}
export function getPaymentlist(query) {
  return request({
    url: '/kjy/payment/list',
    method: 'get',
    params: query,
  });
}
export function getPaymentdetatil(id) {
  return request({
    url: `/kjy/payment/${id}`,
    method: 'get',
  });
}
//修改费用缴纳
export function updatePayment(data) {
  return request({
    url: '/kjy/payment',
    method: 'put',
    data: data,
  });
}

//删除费用缴纳记录
export function deletePayment(id) {
  return request({
    url: `/kjy/payment/${id}`,
    method: 'delete',
  });
}
